﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace HomeData.BaseLibrary
{
    [DataContract]
    public abstract class SearchParameters : IEnumerable<SearchParameter>
    {
        public SearchParameters()
        {
            List = new List<SearchParameter>();
        }

        [DataMember]
        public List<SearchParameter> List
        {
            get;
            set;
        }

        #region IEnumerable<SearchParameter> Members

        public IEnumerator<SearchParameter> GetEnumerator()
        {
            return List.GetEnumerator();
        }

        #endregion

        #region IEnumerable Members

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return List.GetEnumerator();
        }

        #endregion
    }
}
